Test get_sig function and fininsh some work in restore