[task] added tests for searching with sortBy (Users and Groups)