Bug in getByIndex when using key arg now fixed. Increased test coverage.