added teardown to unit tests