add unit tests for prune, findlogs