Added test by @aviflax. Turns out the fix for #63 fixes #65 as well.