Get test coverage up to 100%, modulo branch coverage.

Delete dead code, write a few new test cases, and fix at least one bug in loadbalancers...