added phpunit test cases