add tests
Merge pull request #1 from mishin/master

add tests