To make sure this does not regress again, modify the existing test to also check for the condition described in PUP-9047 - the ticket has a simple repro step.
it is also possible to create an rspec integration test like we have for puppet apply. I prefer that over beaker acceptance, because of the faster feedback, but up to you which way to proceed.