Added tests for Index class