add java test coverage