Fix bug 1058379 by updating the old mobile redirect tests

(Sorry, the previous pull to fix this was from a really old branch -- this is a fresh copy.)
Merge pull request #268 from stephendonner/fix-rewrite-tests

Fix bug 1058379 by updating the old mobile redirect tests