Add test for checking removals of relocated variables.

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