Test encode / decode with all integer types