NX-685: Proper fix and UT for tag handling and shrinking

Changes:
* proper shrinking implemented, no need for "dist-tags" and/or "latest" tag existence
* renamed shrink method to better reflect what it does
* added UT