Fixed some unit tests/removed some unused methods.
Fixed 'RedundantBoolCompareIssue'.