added delete tests and make sure index are refreshed after deleting