test for the bug from wangli.