add unit test for message builder.