Fix bug in minion registrytest.

I think this is introduced in #1474. 

The error didn't surface because Delete is not used apart from caching registry, and which only test cache layer instead of underline registry.