Can you add the following test, too?

```
assert_equal "refs/heads/packed", repo.references["HEAD"].target_id
```

This will test that the symbolic `HEAD` ref actually points to `refs/heads/packed`.