Add test-tap-file npm script that outputs results to a separate file.

This allows continuous integration platforms to retrieve and parse tests
results easily.