As several readers have pointed out, the Heinlein story was Tunnel in the Sky. Farmer in the sky was another book. Blame it on relying on 50 plus year old memories instead of fact checking on the internet.