Add clear() method to OneToOneQueue.
Add test case for OneToOneQueue.
Various improvements.