Allow '-' in node names.
Added RPC methods tests.