fix some phpunit tests