add some more tests to make preUnlink behaves correctly