UT used "illegal" mocks, having null storage context.
Stopping thread always.

As dispose is invoked only when repo is removed
from the system, but in tests, when JVM is not stopped
but new instance of nx is started, old threads left in
dandling causing OOMs