added queue.py testing function