TST: added a ROI which goes out of bounds
simplified the for loop