Fixed #22811 -- Allowed setting both the old and new TEST database settings.

https://code.djangoproject.com/ticket/22811
done