Add error tests

Should fix travis too