Hack: batch stockout and delete stockout test(only for single thread)