Added tests for collections.

Enabled indexes and querying/iterating.