Add rnd shifts for CIB queries, make agent to be unit testing suitable

Change-Id: Idd15e03af217d1e6a9da0f6f78b3f8a5ac8e9977
Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>