make amd testcase work