Added some unit tests.
Merge pull request #19 from maurodec/some-unit-tests

Added some unit tests.