Fix for phpunit tests