Added more thorough testing for tables model