int support and add new testcase