fix cuda test cases