[test] temp dir should be removed after app exits