Fixed errors on caspa tests