Add tests for RT #111766