tests now run with module flag set to commonjs

This is related to Issue #866