Fixing cuda test dependencies