Add test for transform()