added safety to testcasecreator