add tests for facters

Based on: http://unethicalblogger.com/2014/03/01/testing-custom-facts-with-rspec.html