Added unittest for models with a required property