added new test cases and read.py