Test for #1881

Created this pull request to track tests for #1881.
Discussion should continue on the issue