simplify phpunit test