prefer `Array.isArray X` to `X instanceof Array`
add test examples; allow tests to be run individually; configurable dirs