add main-test.js ,improve others