ISPN-4464 Unify test suite for remote and embedded DSL based query tests

* Fixed test so it will properly close cache manager and continue build
ISPN-3729 Minimize the number of moved segments for SyncConsistentHashFactory

Based on the original consistent hashing paper, the
NewSyncConsistentHashFactory algorithm doesn't move any segments at all.