make test for more generalized storeNewMessage