(PUP-1490) Support --test option for puppet apply

This allows more parity between puppet agent and puppet apply and also
makes it easier to enable a bunch of testing options for apply.