fixed some phpunit test errors