Adding test cases to rrl balancer and minor changes