Fixed a test.
Changed the exporter to mark the ends of all flows.