test the ajax call