add queue test code