Test for ajax call