Add sudo functional test and validate log file error message and data_folder error message, move function into according file, paver validate