fix api test to match new endpoint behavior