Adds a new base test class for message handlers.
Updates the message handler tests and base class to a be a bit more flexible.