Added external entity tests