What does this block actually test? It looks like it's making sure the WD and index statuses use the same code — is that actually useful?