fixed issue with SLEEP() in test