change testing from randomly to consecutively. also made few small
changes.
fix max_iter bugs. now batch operations are computing correct results.