fixed rspec tests - changed semaphore to use rspec