add test on Message class.
pass type to Message::find method.