test relative_to