Added replacement of unsupported characters
Added check for the existence of a table of selected test