Forgot to close the last output file.
Adding a pipeline test that works on fake data generated by us.