Improved performance of repl test
MessageContext is now handled exclusively by derived class