Designing resilient testnet environments for realistic layer two protocol simulations