Finished writting the function tests.