Add assertion while accessing elements by index
Begin to write some unit tests