add function unit 2 test.