update tests
some fix and refactor
Merge pull request #13 from Amoki/travis-coveralls

Travis coveralls