Add test case for #406