fixed bug with missing TEST key in database properties

occurs when using e.g. ./manage.py loaddata (runserver, test and check work fine)