Changed relation in GET INDEX and improved test