BinaryQueue moved from core to tests.