fix key tests for browser

Some tests that were intended for node only were running the browser. This
update removes those tests from the browser.