[GC] improve testing around gc.relocate and fix a test