Create Ai::Settings factory

If an instance-wide Ai::Settings record does not exist, we call Ai::Setting.instance and it creates one.

This happens often in tests and makes our query limit tests fail because it does an additional query.

To mimic reality/production, we should use a factory to create an Ai::Setting instance record.