Add tests for _draw_indexes