Complete handling of TEST, IF.