add sleep in script for integration tests