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

Fixes #1946.
Merge pull request #1947 from misterdjules/test-tap

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