LPS-47303 BaseIndexer: introduce tests to document current behavior

https://issues.liferay.com/browse/LPS-47303
LPS-47303 SF
LPS-47303 SF
LPS-47303 SF
LPS-47303 Auto sort