removing default_charset tests. code can be reused in main function and