Added tests for worker framework.