add test example with history store