added tests for 100% code coverage Fixes#1