better style in test.js