Fixing failing test case for preRemove callback.