Fix sign_oauth1 and add test.