(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.
Merge pull request #2286 from dalen/apply_test

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