Add test case for #165