Trying to debug Sinon Spy issue