tests: Test reconnect delay calculation.