test for zero values and that min and max attributes are handled correctly, including extension to handle them when zero