Add test for dequeue, fixed bugs in dequeue_remove_element_by_value