Test InvalidIndex and InvalidSize exceptions
Add stub for hintRead function