cleanup mocks
sets prototype fields so we can override easily in tests