Add IndexUpdater tests

- Add IndexUpdater Junit tests using tests from CloudantQueryObjC as a
guide.
- Fix IndexUpdater bugs based on Junit test results.
- Implement minor formatting updates.