Added tests for #8.
Merge pull request #9 from AshFurrow/master

@orta => Added tests for #8.