Fix unit test for torque after changing getMetadata interface