test(message.spec.js): add infrastructure for testing INMessage models

Also adds a test case for the preceding commit in this same CL, in order to demonstrate that updated
messages via INThread#messages() will respect INMessage.resourceMapping.