flight: add first set of unit tests