Use `isBrowser` check for tests