added tests for message module