fixing phpunit errors