Added retry and consistency tests

There are a few TODO's to double check writes, but all other exceptions are expectedly caught, when applicable.