Fix ugly metaprogramming tests