Tests for Inverted Indices