add testcase for #38
rebuild