Substitute stub() with double(); stub() is deprecated