add junit tests to increase code coverage