Minor improvements of the MSGStore class and its unit test.