setup travis and coverall, fix tests