Support custom DB constructor kwargs in test helper
Support LRU cache sizes >= 2G by using correct integer type