Move test objects in NReplServer to the tests.

It is a bit awkward to a have a test obj in the main code.
What do you think?