[BenweiZhu] add unit test to condition qq_qq and pq_qq
[BenweiZhu] add unit test to condition qq and qr