Fix variable length referenced before assignment.
Fix simple errors in tests due to missing imports.
Fix can_operate test after dependency changes.
Mark a test as skipped - will never work as it was
Change function name in velocity speed table tests
Convert many KPV tests to use NodeTest.

Also fixes the tests for 'Speedbrakes Deployed With Flap Duration'.