add test cases for inverted sections