phpunit tests, need to automate api tests