tests: update test to use functify.