Stub a game object with method instead of let