update test to main.js

part one