Make tests independent from external settings and refine the ellipsis in automatic_abstract method