Adds test for #202.
Merge #496 r=@tcr: Adds test for #202.