fix unit test

Assume the browser would generate a error message which includes "ARROW
is undefined"