tweak test configuration for both browser and nodejs.