(fix) Tests: Replace resource loader with AMD

Do not indent inside define blocks