Add doctest to with_metaclass()