testing and cleanup of MessageInvoker.  Closes GH-41