Fixed capacity bug. Added additional tests, one which should pass after items are returned to allocator.