add automatic sanity test