Added php error reporting in test.php