Add some tests for RelocVisitor.

Patch by Charlie Turner.