Move generator.js to test/