lets restructure tests as a read(write(value)) == value style test and make it data driven like here https://github.openx.org/orange/ox-http-gateway/blob/master/src/ox_http_gateway_util.erl#L724