check: Split into separate tests, cleanup file error handling
Add Travis configuration