add tests for #1872