Upgrade test specs, implement encoding storage and reading with encodings.