modified checks for failing tests so it only works for puppet 3.2+