Rather refactor the whole autoscale to use mockwebserver later. Separate commit. This also needs to be done for trove too.