Added -collapseC and -collapseB flags to test_random_scalar.py.