Skip to content

Testing a policy administration system after a tariff change: regression and test data

B2Bnetwork team · · 6 min

IT in insurance

In brief

A tariff change reaches far beyond the premium calculator: it affects every policy administration process that calculates premium, including renewals, mid-term endorsements, refunds on cancellation, documents, accounting entries and partner interfaces. Testing starts with a map of those touchpoints, continues with process regression on synthetic policies and ends with a shadow rating of a sample of the book under the old and new tariff, comparing the distribution of premium changes. Test data comes from product rules, not from a production copy.

Where a tariff change escapes the rating engine

The product team sees a tariff change as new factors in rating tables. The policy administration system sees it in a dozen places, because it calculates premium for much more than new business. The first testing step is therefore a list of every process that calls the tariff, with the version of the tariff each one should use.

ProcessTariff versionTypical defect after the change
new business online and through agentsnew, from the effective dateone channel stays on the old version because of a cache
renewal offer generated in advancedepends on the start date of the new termoffers generated before the change go out with the old premium
mid-term endorsement (new vehicle, address, sum insured)usually the version from the inception datethe additional premium is rated on the new tariff for the whole term
cancellation and premium refundthe version the policy was rated onthe refund is based on a different premium than the one collected
documents: policy schedule, quote, product informationthe same as the premiumthe printout shows a different premium than the ledger
billing and written premium postingthe same as the premiumrounding differences from inconsistent rounding rules
APIs for partners and price comparison sitesnew, from the effective datethe partner receives a different premium than the customer portal

Under Polish law, Article 813 § 1 of the Civil Code gives the policyholder a refund for the unused period of cover when the contract ends early. The test must confirm that the system calculates the refund from the premium actually collected, not from the premium the new tariff would produce. In-force policies written on older product versions are covered in more depth in Regression testing at an insurer when products change.

Regression of processes, not just calculations

Premium values themselves are best checked at the rating API level, against an oracle built with an actuary. Techniques such as decision tables and boundary values are described in Premium calculators: testing tariffs and rules before a campaign. Regression of the policy administration system has a different job: to confirm that the processes around the premium behave as before, except where they were meant to change.

A regression suite after a tariff change usually covers:

  1. The full policy lifecycle in one run: quote, issue, payment, endorsement, renewal, cancellation. Every step compares the premium with the previous one.
  2. Crossing the effective date: a policy written the day before the change, on the day and the day after, with an endorsement after the change. This is where version selection defects appear.
  3. Channels: the same quote in the portal, the agent system and the partner API must return the same amount.
  4. Batch jobs: overnight renewal offer generation and written premium runs, executed with the system date moved past the effective date.
  5. Documents and data exchange: the printout and the accounting file compared field by field with the policy record.

Steps 1–3 can be fully automated against the API. Step 4 needs an environment where the system date can be moved without disrupting other teams.

Shadow rating of the book

Regression on selected cases will not answer the question the board asks: how much will customers' premiums change at renewal. A shadow rating answers it. You take a sample of in-force policies, calculate the renewal premium for each under the old and the new tariff, and group the results by segment.

Segment (example)Policies in sampleMedian changePolicies changing by more than 20%
drivers under 251,200+6%140
region A, claim-free4,000+1%0
fleet, several claims300+12%45

The figures show the layout of the report, not market data. The actuary compares this distribution with the intended change. Policies outside the expected range are analyzed one by one. Often the cause is not a tariff defect but a combination of discounts nobody anticipated, or an old flag in the policy data that the new tariff does not recognize.

Shadow rating runs on policy data, so it needs either a secure environment with production-grade access control or anonymized data that keeps the attributes relevant to rating.

Test data without a production copy

Regression data is built from product rules. A generator creates synthetic policies that cover the rating factors: age, region, vehicle, claims history, discounts, channel and payment frequency. The full combination of factors is usually far too large, so teams use pairwise testing, extended with high-risk combinations named by the actuary.

Good test data for a policy administration system has four properties:

  • history: policies with previous terms, endorsements and claims, because renewals and discounts depend on the past;
  • product versions: policies written on every tariff version that still has policies in force;
  • a predictable result: each policy stores the expected outcome from the oracle, so no manual judgment is needed;
  • repeatability: the generator produces the same set on every run, and the environment can be wiped and reloaded.

A production copy with customer data in a test environment requires a legal basis and safeguards under the GDPR, including data minimization (Article 5) and the measures in Article 32. Production data therefore stays only where shadow rating needs it, and regression runs on synthetic data. Masking is also discussed in Test data at an insurer.

Fitting it into a quarterly change cycle

When the tariff changes every quarter, testing cannot be a project from scratch each time. A fixed rhythm works:

  1. The analyst updates the process map and the list of changed factors.
  2. The data generator receives the new rules and the oracle the new tables.
  3. Automated API regression completes overnight.
  4. Shadow rating produces a distribution report for the actuary to accept.
  5. Manual testing focuses on documents and new rules the automation does not yet know.

This is the approach in the case study Automating policy system regression before quarterly tariff changes. B2Bnetwork engineers have been testing insurers' systems for years, and the scope of building such a suite is described under Test automation.

Questions and answers

How long does testing take after a tariff change?

It depends on automation. With an API suite, full regression runs overnight and shadow rating of a book sample takes a few hours. The longest part is analyzing unusual policies from the shadow rating and testing documents. Without automation, teams usually test only a sample of combinations, and some defects surface as complaints.

Can we test on a production copy if the environment is secured?

You can if there is a legal basis and the environment has production-grade access control, logging and encryption. In practice such access is limited to shadow rating and a small group of people. Regression is better run on synthetic data, because it is repeatable and contains no customers' personal data.

Who defines the expected premium?

The actuary or the product team, in the form of an independent oracle: a spreadsheet or model that calculates premium from the tariff tables by a different route than the system. The tester compares the system output with the oracle. When they differ, the tariff owner decides which one is right.

Where do we start if regression is manual today?

With the map of processes that calculate premium, and with API-level automation of rating for your best-selling product. The data generator and shadow rating come next. Full lifecycle automation is usually the last step, because it needs a stable environment and control over the system date.

What it looks like in a project

Changing a policy or claims system? Talk to an engineer who knows insurance products.

Let's talk

Read more: IT in insurance

All in IT in insurance →