Test and IR builder