factors out code for if a stage is missing urls and tests it
fixes names of test classes