The directed acyclic graph test