Passing test for redirect.mode property in constructor