Fix some redirect tests when resource is invalid