added phpunit api test