Add test coverage to pkg/jsonmessage Upstream-commit: da255ec962e26491baceffdc230fac3561396ff8 Component: engine