Support different database adapters in tests