fix jsonrpc test function name
send error on undefined methods, fix #3