implemented testFib(f, n)