adding test for perform method in Function class

Everything seems right in the test failure trace console on the lower
left corner. However, it says it fails the test.