Add more tests and remove assert use TypeError instead.
add readArray error test case
Merge pull request #1 from fengmk2/more-tests

Add more tests and remove assert use TypeError instead.