Porting lots of tests from the Python sync server