Unit test for double entity removal