tests: fixed nested item test depending on the order of the keys.