support for classmethod and staticmethod decorators (and tests)