pami transport works well with tester.

Changing for loop to queue.

Signed-off-by: Huy Bui <huybui@anl.gov>