Modified / Added tearDown() function for different tests

There were certain tests for which objects weren't being destroyed after tests are over.
added tearDown() in logging library test