Use instance var adapter_class instead of reader
Change args order in allocator builder
Add spec for allocator builder