tests/unix_sockets: Move message->resource parsing separate