Fixed #22653 -- Added some database feature flags to tests.

Thanks Rahul Priyadarshi.