isValid() testing