Sorry, don't understand the logic before. Assume, I'm writing new app and how should be behavior, if there is no value for key in the `metadataStore`? BTW, this test passes without that logic above. 
How about to cover both cases: clean store and with `lastProcessedId`?