Refactoring in test: removing code duplication.
Refactoring in test: removing code duplication.

digitalnatives/jobsworth,webstream-io/jobsworth,xuewenfei/jobsworth,webstream-io/jobsworth,ari/jobsworth,ari/jobsworth,rafaspinola/jobsworth,digitalnatives/jobsworth,rafaspinola/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,digitalnatives/jobsworth,webstream-io/jobsworth,digitalnatives/jobsworth,rafaspinola/jobsworth,xuewenfei/jobsworth,ari/jobsworth,ari/jobsworth,webstream-io/jobsworth,rafaspinola/jobsworth,digitalnatives/jobsworth