Add unit test for CompareQueue