Enhance tests, add mock server interaction, add self.initialized state