small improvements for the cuda test.