create test function, delete permanent connection