Fix tests. Need to fix the weird end-not-piping issue.
Add travis CI