Break up the unit tests in scan_by_key.cu
KNOWN_FAILURE the problems due to nvbug 1541533
Replace use of rand() to make behavior uniform on all platforms