Add drupal unit test, correct variable errors. refs #12672