Add missing flatten() callback argument.
Run flatten tests.
Ignore node_modules dir.