add test to compare record domain.
separate Message and QueryMessage.
added method to create Message from QueryMessage.
added/modified message test