tests: test for Java classes with overloaded methods (issue #73)