Added metadata test on collections as secondary index