convert test to AMD, and fix lint error, refs #12451