fix test case, add travis and coveralls badge and settings