Fixing test and moving position of an index in the doc