Add call to ToList() on relevantHandlers variable to avoid test error.