improve the redeploy test