Metaprogramming to prevent class changes from affecting other tests