JSONRPC/REST: Fixed tests.