Added unit test for cqed