Fix test except for ajax