separated tests for node and browser