made tests run in both node and browser without adjustments