Creating and testing a sub-transformation