add mocha tests with require.js