Added test for main nblog.js and updated errors