Adding more validation, and adding tests for Message.js model