added queue test pseudo code