cleans up tests.php controller