Test leak detection.