TS test for construction/destruction