Code clean up. Generalized testElectrodeLost
Fixed a typo in Motion