Add a regression test (see #8116)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Add a regression test (see #7953)

Signed-off-by: Austin Seipp <aseipp@pobox.com>