refactor coverage test, add coveralls to travis