Reworked generator to be pure node.js and removed refdata/ instead added test/ data