Who took the oath of allegiance and was considered to be the Old Pretender?