Improvements to tests only in Rest and QueryIndex modules.