Updated container tests to verify consumer lifetimes and proper disposal of consumer dependencies