Added tests for models.