fixes validation in model spec