Fix phpunit tests