fixed the spot_put test by using patching