Add regression test for #10

Should've done this in the first place.