Unit test for double entity removal

Redone the PR for #107.. I hope I can find out what I'm doing wrong with git all the time.
To retrieve the `engine` please use the `addedToEngine()` method.