DDP testing code working from Drupal