fix to pass phpunit test