preservationmeter: Adds more tests and refactor of tests

* Changes import of api as api.
* Refactors imports to the top
* Adds test of bad/fake zipfile
* Fixes not deleting dir after test_zip_with_txt_csv

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>