add isBuffer tests
fix isBuffer to work with browserify 3.x