Implement tearDown methods in tests to save memory.

Signed-off-by: Se7enChat <se7enchat@zoho.com>