Rename runSetup to runPrepare and improve its test