Added test for rules valid property on init.