TODO: write tests for TransformedBitmapAllocator