Add test cases for (re)allocating a peers, write buffer.
Add test cases for (re)allocating a peers, write buffer.

mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet