refactored test cases of circuler queue