Add test-ci npm script that run tests and writes results to separate
files.

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