replace assert foo == bar with appropriate self.assert$Foo calls

except for test_migration because there are improved tests available
in the feature/cli branch
improve tests for comment field validation