rpc tests moved to rpc_test.go file