Add test case for #1489777