More unit tests for autoscaler.

Author:    Vedran Bartonicek <vbartoni@gmail.com>