index: use consistent slicing method
tests: code formatting