Add Ajax request test.

Test that correct callback called or not.