phpunit tests fixed for version 0.8