Fixing tests to work without requirejs