Fix showSpies and editSpies resetting in tests