added bconsole functionality, added jsonrpc test