Detection of instancemethod call via class in generic decorator.
Updates to unit tests.