fixed exit, fixed travis, added some tests