test ajax fact method