Add Puppet::Error rescue for spec tests