Changed invalid url definition.

Summary:

Test Plan:

Reviewers:

CC:
Added "use strict"
Refactored tests.
Refactored redirect test to use new test helper.

Summary: T1

Test Plan: No test plan for this.

Reviewers: teppo

Reviewed By: teppo

Differential Revision: http://wunder.sytes.net:81/D2