Add Mechanism.reportInvalid() function