Resetting WorkerFunc after the test

Also removing unnecessary test