Method of testing a surgical system