Wrote macro for testing that exceptions are thrown
JSON serialization for message system is done and tested