Added regression test for issue #258 (fixed in bdfb8b)