[PATCH 1/2] test: Wrap assert macros in ({ ... }) and fix missing semicolons