fixed unit test for deleted models