Add players controller tests and refactor.