Better tests for Functions module.