use django.test.Test case to ensure db access during tests

See referenced commcare-hq PR