[TEST] Add test for #8226