Add a test from pr14898.