Add tests and documentation for useRelative