Get redeploy tests to work on command line and in IDE