Add test for #18908

What does in_test achieve?