fixed redirect test error