Added test for #4336