Autoscaler - finalized unit tests for periodic autoscaler.