Fix getSubpackage test
Fix errors in tests after latest code changes
Write unit tests for ElementsIndexBuilder compiler pass