Add failed update test. Create protofactory