Convert tests to use requirejs.