fixed main.js in tests