Testing some metaprogramming for classes