Added tests. Fixed few minor issues found while writing tests.

Added tests. Fixed few minor issues found while writing tests.
Fixes #5 
My point is that the changelog should include descriptions of the changes relevant to users of the project. They don't care that the bugs were uncovered when writing tests, they care what the bugs were and that they were fixed in this version.