make test imports work in node and browser