Added tearDown() function

tearDown() function will de-allocate memory allocated to objects created during testing