[test] add proper failing test case for #738
[fix] fix #738