modified the functional test so that it inserts a valid object
updated the unit tests to validate the new conditions added to the model.