add tests for readtables