We have performed experiments where hot electrons are extracted from a normal metal into a superconductor through a tunnel junction. We have measured the cooling performance of such NIS junctions, especially in the cases where another normal metal electrode, a quasiparticle trap, is attached to the superconductor at different distances from the junction in direct metal-to-metal contact or through an oxide barrier. The direct contact at a submicron distance allows superior thermalization of the superconductor. We have analyzed theoretically the heat transport in this system. From both experiment and theory, it appears that NIS junctions can be used as refrigerators at low temperatures only with quasiparticle traps attached.