Add test case for nested transformations.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>