add unit test for #8325