Modified test1 in order to use balancing.