rewrite tests for one pass phpunit