Fixed tests and add MessageIdCache example