Test unit test constructor and destructor