add test cases for require.js