Added tests for django orm backend.