test for new file in diff
test for malformed input
don't need to explicitly catch StopIteration
refactor db access
basic plugin test