add testcase for reader