Add tests for RT #111866