changed unit tests to support requirejs