fix listqueue and tests