Update test function for browser.