Make buffer tests more robust
Upgrade browserify to 3.x

Helps to improve memory performance issue reported in #207.