replacing testemit with cstore