Fix relativeLocatio typo, and add test

Noticed by @evax