league controller tests and implementation