litle refactoring of test/smoke.js