add tests for #1723