Fix queue tests