proper failing test case for ClassMethods
[Fix #956] Apply ClassMethods check only on class/module bodies