Added do script to check for bad calls to metaclass in integration and functional tests.