Adding tests for indexing operations