hs: tests for relative voltages, refactoring.