138-fix-competitions-form

Fixed competitions form and added first simple tests for it.
![zrzut ekranu z 2014-05-13 15 18 42](https://cloud.githubusercontent.com/assets/6718923/2961991/4673366a-dacc-11e3-8f02-a8ad4cf87aba.png)