test: Fix run-pass tests for unsafe C functions