Added entity test for validating redirect http code.