convey test results in exit code, register tests with npm