Added by Rob Nahf about 11 years ago
added tests for mergePreferred and adjusted logger for the method.