Destroy acceptance tests not tested properly + duplicated code

Hello, I noticed that many destroy tests do checks only for the absence of a parent resource (i.e. gitlab_project and gitlab_group) and delete function for a particular resource is not tested at all (they are only called by terraform).

What's worse, most of these destroy tests are duplicated code. For example, the following tests are the same.

I think it deserves some refactoring. Does it make sense to take some action here?