[Task] update test-suite to work in browser and terminal