Testing and Quantifying Collective Intelligence