Add transformation class, integrate tests