Test coverage for #1898