IR: Add missing tests for function-local metadata