diff --git a/rpc/args_test.go b/rpc/args_test.go
index dee72b86ff13c0141b331c299eb9337b16899b98..cb1d1904b3f24669af42980ae6384132ee229c2e 100644
--- a/rpc/args_test.go
+++ b/rpc/args_test.go
@@ -1680,3 +1680,12 @@ func TestSubmitWorkArgsDigestInt(t *testing.T) {
 		t.Error(str)
 	}
 }
+
+func TestBlockHeightFromJsonInvalid(t *testing.T) {
+	var num int64
+	var msg json.RawMessage = []byte(`}{`)
+	str := ExpectDecodeParamError(blockHeightFromJson(msg, &num))
+	if len(str) > 0 {
+		t.Error(str)
+	}
+}