test($location): fix typo
test($location): fix test of `{rewriteLinks:false}`

The test for not rewriting links was invalid and just happened to be
passing by chance (false-positive).