The I dea here was to delete the documents from the PyPLN database after running the tests but I didn't know how to do this via the API.