Added PHP function test to test.php
Cleaned up test.php