Rewrote unit tests migrated from doctests #18586

Basic test refactoring for  " Custom Column test ".