Move tests to phpunit