Test for worker comparison

I also wondered why the client mock was needed in the recently added tests, found that it was because of a missing require.