Fix for loop count while building test data
Removed unnecessary +1s in sizes