Fixed some specs

Fixed some specs and added travis continuous test integration.