A patch for unit and UIAutomation coverage