making error tests less specific to pass in browser