independent tests for node and browser