auto scale: added more tests for auto scale up/down.

related to #154.
auto scale: implemented method to do the auto scale.

related to #154.