Add test for specifying a custom error message.
Update min, max and range rules to work with numbers and array length.