Adds helper function in test_transform_worker