Fix tests to work with new ImplyFactorFunction semantics.
Make semantics of ImplyFactorFunction consistent with DeepDive. Fix Parsing for TSV format.