Add some tests about oauth exceptions