fixed a potential error in cuda test