Fix some tests
Propagate error code in Travis