Test for Trac #8242

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