Add test to check behaviour if peer allocation failes.