Explicitly test that query strings are preserved

This adds a test to ensure query strings are preserved for targets. As
part of this rename the original query string test to make it clear that
it's aimed at the source of the redirect, not the target.