added more sleep time in the unit tests