Add test for #166.