more changes to test.php controller