Update test suite to Mocha and RequireJS contextualization (with less undef)