Testing min and max occurance attributes on element