Updated the tests due to the fix of bz1109870

Now we can delete orphans by content type.