added error checking for having no main test