fixing should.js api deprecation issues