Automation of polymerase chain reaction tests