Add in index test to make sure that sub-objects are being indexed properly.