Finish porting all tests, add legacy API mode to updateFromTDRevison