add sleep after rebuild, before running testng, to give webapp time to reload