Fixed examples browserify task and updated tests.

Fix for the problem described in #257
+ Fixed tests.