add a test for #3616