phpunit test for message