add unit tests. and add coveralls's settings.