added sleep to fix broken test in jenkins