Move spy to beforeEach