changing tenant user's role.
adding search test.
adding waiting for search test.
Merge remote-tracking branch 'origin/master'