fixed a bug regarding public functions in upd-client
implemented getMessages and a test for it