nom test was giving false positives, using the mocha `done` callback seems to fix it.
Changed replace method regexs to non global (`//g`), to avoid bug in replacements not working
Added test `manyVariables`