Add unittest for get_function_signature.