Table: fix the bug of refresh method in table widget

Closes gh-6698
Fixes gh-7090
Table: Add columntoggle refresh test

This adds tests for f61d376398ba81f7f7fa3d6f84cb9812ebfc255a.

Closes gh-7086