Adding support for message result saving
Added junit test for message result saving