the for loops can be replaced with `fromarray`. But I don't see any reason to make this test so large.