Drupal theme name validation function and tests.