Test kasan: replace macros with functions