modify dequeue method
add a application test