Test coverage for #1884