add tests for ordered field
describe header format
fix ordered field representation, fix tests