Test that methods can be called on class definitions