implemented cuda test