Catch Puppet::Error in spec tests

Without this commit failure scenarios are not being tested.