Redundant dispose in tests