loadbalancer/refacto: fix unit tests

bug #237