Adds unit test for building offsets from YAML
Updates YAML format. Checks for duplicate IDs.