add specs about invalid values and error message