Added check when selecting competition.
Use dates in IndexController.
Added tests for CompetitionController.