I had spotted there were no tests for res.location('back') so I have added them.
I came across this because I was trying to navigate to the relative page called 'back' and was being redirected to domain root. It was not expected. After looking at the code I spotted there was a "special" case for the word "back".