Added tests for Message and GroupFactory