Feature/add ci

added travis and fix unit tests