[PATCH 3/3] test: Add test for builds with -DNDEBUG