Made the single-serial-socket class unit-testable by introducing mocks.
The first test yielded bugs, so this has already paid for itself.
Correct a method that was not returning (unsure how this was missed before now).