Add tests for RT #118519