added uniqueness requirement to vendor model and test.