Migrate to version 2.8

- Adapted test
- Reference fields need a None value if they can be empty.