add test for reader