Fix port and queue tests.