improve test coverage

Add tests to improve coverage based on the coveralls.io report. Address #18.