fix ouput_sym_file_new function
add a test function