Fix error in phpunit test class