Fix redirect test cases to use bytes