Added a test for the cockpit trend calculation. There is something strange going on, we should investigate this further...