don't reuse the $err variable in t/fuctional