Add alarm test and false alarm to write file.