Added metaclass test from standard test suite, Fixed attribute lookup in metaclass.