fix getExceptionWhenContractIsNotValidWithRules test