Refactor(table.ts): Added a couple of methods into the onload function for testing purposes.