Unit test

Fix problem index not created in document, to avoid duplicate ip address