Fix tests & finish CI configuration