Changed test.php to run with the api