Close #5
Use `isBrowser` check for tests
Merge branch 'refs/heads/refactoring'