test: index should retrun object