Update functions.py

Fix typo that causes test functions with teardowns to fail.