simplify TestRegister
RPC functions return a value
update existing RPCs for new scheme