added table reader and its test