Added call to container.reset() in teardown() function

Added call to container.reset() in teardown() function to avoid 'calling set on destroyed object' errors