Added integration tests. added get_messages method to client