feat(mocks): add rewire module to server tests for sync testing

Also change tabs to spaces in server.unit