add test to verify deterministic peer creation