In this contribution we develop a refined numerical model of pancake coils assembled from a coated conductor Roebel cable, which includes the angular dependence of the critical current density $J_c$ on the magnetic field and the actual (three-dimensional) shape of the current lead used to inject the current. Previous works of ours indicate that this latter has an important influence on the measured value of the AC losses. For the simulation of the superconductor, we used two alternative models based on different descriptions of the superconductor's properties and implemented in different mathematical schemes. For the simulation of the current lead we use a full three-dimensional finite-element model. The results of the simulation are compared with measurements and the main issues related to the modeling and the measurement of Roebel coils are discussed in detail.