Added specs for Index class