Modified test/setup.js to work everywhere