fix root in restapi 1.0 causing multiple register in unittests