Add test for index.add with callback