add unitest with scripttest
fix get_file_path