Some fixes for duplicate rejecting queue and making relevant test cases