add regress test for #18