extracted eval_string function to unittest class.