testsuite: make DatabaseBacked tests work without django installed