Fixed redirection errors when validation for create-new-test fails.
Added so JS comments