modified tests to work in the browser using browserify
modified tests to work in the browser using browserify