added API test classes and PHP header