Added test to ensure that invisible attributes are not validated by default.