Adding functional tests for Message repository