test ES based classed with controlled data