Add test for persistent handle