Unit Testing for Messages and Notes

Unit testing for messages and notes is now complete.