fix multiple definition of test_offset