Added a test to test function evaluation.