CloudTableClient refactor + fix npe in test base