adding some tests for facter(), cleaning up bugs exposed