Spy on toggle function in setup