fixed execption tests