Improve correctness of SwigDerivedClassHasMethod() tests

Tests first added in issue #1323
2 files changed