Added test for #5361