added start index, updated tests