use printf to simplify output

test-find_envvar is modified
use printf to simplify output

test-fill_arg is modified
use printf to simplify output

test-export_envvar is modified
use strcmp rather than character check for "vi"