test enum in db,rpc