Move refs tests to dulwich.tests.test_refs.