Adds regression test for #227 Refs #226

Should fail on current master, will succeed with @bukzor 's patch in #226