use new syntax of rspec

relax the sleep time