updating server unit tests using rewire