It's not necessary to initialize 'spy' to 'undefined'