Removed explicit destructor call from test.cpp