Added a missing test, and added an output file