fixed error in phpunit test