Fixed nserror.js unit tests