finished tests for messages service

This is the last api method I am going to implement for now
because it is all I need in my application. Later I may add
methods and tests for the other services