Add index spec.
Merge pull request #1 from a1russell/master

Add index spec.