Test for Trac #7571.

Signed-off-by: David Terei <davidterei@gmail.com>