Refactor tests. Se agregan metodos de control de indices