added some worker unit tests with rspec mocks