Currently, unittests are not really independent from each other. Besides, some improvements are needed, e.g. use pytest's ``tmp_path`` fixture.