fixed unittests for phpunit > 3.6