worst_vendor(date) method, refactoring, catch for duplicates, tests