test for param lifetime