add JUnit test cases to increase code coverage