There's a related test in scenario/hazard/core_test .