Fix wrong errors counting

 This change will fix wrong errors counting for the current version of Dojo (1.10)
Fix error when we using node.js for tests
Merge pull request #2 from SergKam/master

Some fixes for node.js host