Add stall_till_cloudsize to tests.
PUB-837: Fix network test ClassCastException.