setValid test