Implement messages back end unit tests