add midterm machinee test