Refactored test suite and included RequireJS optimizer tests.