Fixed redirect api test