rspec test cases for mutex 'sleep'