Test written
Merge pull request #2 from basarevych/tests

Tests are done