Bugs in MSGStore and in the test function check_create_storage_msg() have been fixed.