Finished unit test for ftrace