Add test suite

Test suite with 100% code coverage.