Completed [] access operator and its tests