Add test_backend.py in preparation for migrating backend to rigor's database layer