test for empty index