Output TAP files, and do some more tests.