Adds test for #244.