Tests for RT #123470