added test case for public message