Fix test and add ci support.