remove extra semicolon
make this test a bit more tolerant when checking sleep time