NXP-11967: make tests more robust to page changes and add an assert reproducing the issue