Update travis ci config and unit tests