spy.restore() might need calling here