Add test case for checking renaming of types.

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