Add test case for #688