updated phpunit test case