restful: fix for testing accesstoken
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>