Unit tests and some more bugs fixed.
Merge https://github.com/croznik/programmingskills2