Add confirm function for hex tests