add more cases for the mode generation test
Commit 1: explicitly don't generate the native mode. Doesn't seem to be a problem in practice but it's best fix it anyways (cherry-pick) Commit 2: add more cases for mode generation, 4k only doesn't necessarily cover everything (5.27 only)