specs to assert validation and errors