test for #499
fix most jshint warnings in test/spec/ns.box.js