Further fixes to inertial graph cost computation
A regression test and data generator to fail builds if the graph
behaviors change