add tests, fix #7, bump version