added tests for Host::Base#merge_facts and fixed a few bugs along the way