more ignores for pytest
some refactoring, library raises an exception when errors happen.