Added Coveralls comfig, modified unit tests.

Use self.assertEquals instead of assert.