Add test for checking relocations of types.

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