Add test coverage

Add some table tests to increase coverage. Also reorder some tests.