test header: send (un)register stderr to /dev/null

Follow up to #759.