Add test for bug fixed in 8e13991.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>