add check file existent and update test contents