Use `isBrowser` for test switching
Prepare to pass tests