Refactored facter rspec tests.