Add test case for #167.