Fixed tests, added coverage and travis