adding some new tests and adding some production code to FSFlightConnector.java

TODO fill the test cases.