added test
Merge pull request #1312 from john-hill/worker-test

added test