Unit tests for Flight example

For some inexplicable reason I felt the need to do something with Flight, so I added some unit tests to the example. The coverage is far from complete, but it's fairly easy to improve it from here on (@phuu *hint* *hint*).

@necolas Would you mind taking a look if this makes any sense?