On implementation I found that the cap logic did no breach when expected....

On implementation I found that the cap logic did no breach  when expected. Fixed code and test to confirm.
1 job for master in 28 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
passed #3954959
test

00:00:28