Quantum tests of causal structures and non-orthogonal states