Fix tests on browsers: need to add Buffer exception