Allow to filter tests

We can now only run tests that are in a file whose path matches a given
string, via the `-p` option:

    gulp test -p digraph
Cleanup and fixes
Convert jsnx/classes/functions