(PUP-1624) cron: fix a unit test regression
The cron unit tests make use of an artificial trivial provider.
Therefor the type code should not traverse code paths that apply only
when the crontab provider is used. For some reason, this didn't work
correctly when the provider was stubbed in place 'before :all' instead of
'before :each'.
As a result, this following test failed because of the change to the
behavior of the user property when using crontab:
Puppet::Type::Cron should default to user => root
if Etc.getpwuid(Process.uid) returns nil (#12357)
Restructure the hooks to make the behavioral check pass again.