Abstract out tests for whether work has come from a block that has been seen before and whether a string is from a previously seen block.