Expose Index constructor
Slightly better errors
Converted tests to node-tap